<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>假装是个后台</title>
  </head>
  <body>
    <button type="button" name="button" onclick="submit()">
      假如我是领取的按钮
    </button>
    <script src="/static/jquery-1.11.1.js" charset="utf-8"></script>
    <script type="text/javascript">
    var submit=function(){
      $.get('{:url("post","msg=已经领奖")}',function(res){
        console.log(res);
        if(res.code){
          alert("已经给他们发送消息了，并且后台做了处理");
        }else {
          alert(res.msg);
        }
      });
    }

    </script>
  </body>
</html>
